package com.jimmy.medical.repository;

import com.jimmy.medical.entity.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaSpecificationExecutor<User>, PagingAndSortingRepository<User, Long> {
    User findByUsernameAndPassword(String username, String password);
}
